package demo;

import java.sql.*;

/**
 * @author zt
 * @date 2019-12-22 11:00
 */
public class Demo3 {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection conn = DriverManager.getConnection("jdbc:mysql:///db5", "root", "root");
            Statement stat = conn.createStatement();
            ResultSet rs = stat.executeQuery("56132");
            while (rs.next()){

            }

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
